package task8;

public class VIPUniversity extends University {
    @Override
    void enter(){
        if(math+english+chinese+sport>=290){
            double x;
            x=math+chinese+english+sport;
            System.out.println("恭喜！4门课总分为："+x+"，达到重点大学录取线");
        }else {
            System.out.println("您未被重点大学录取！");
        }
    }
}
